package com.jf.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jf.blog.bean.Blog;
import com.jf.blog.bean.Timeline;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TimelineMapper extends BaseMapper<Timeline> {
    List<Timeline> getTimeline(Integer createUser);

    List<Blog> getByYear(@Param("year") String year, @Param("createUser") Integer createUser);

    IPage<Blog> getPageByYear(@Param("page") Page<Blog> page, @Param("year") String year, @Param("createUser") Integer createUser);

    List<Timeline> getBlogCategory(Integer createUser);
}
